package com.otupia.wui.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;

import com.cvlep.appbase.Constants;
//import com.otupia.mos.util.ModuleUtil;

public class ModuleGeneratorServlet extends HttpServlet
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4268531083829596305L;

	@SuppressWarnings("unchecked")
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException
	{
		String path = req.getContextPath();
		int beginIndex = path.lastIndexOf("/");
		String id = StringUtils.trim(path.substring(beginIndex));
		//Map<String,Object> param = (Map<String,Object>)req.getParameterMap();
		PrintWriter out = resp.getWriter();	
		//out.print(ModuleUtil.loadModule(id, param));
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException
	{
		doGet(req, resp);
	}
	
	
	

}
